Skip to main content
Version: 6.0.0-beta.3 - 6.0.0-beta.4

getCanWithdrawUnfreezeAmount

Query an account under the V2 interface, if you operate WithdrawExpireUnfreeze to withdraw the principal, the amount of withdrawal principal that can be obtained. (v5.1.0 new interface)

Usage

tronWeb.trx.getCanWithdrawUnfreezeAmount(address, timestamp, options);

Parameters

ParametersParameter DescriptionData Type
addressaccount address (base58 or hex)String
timestampquery cutoff timestamp(millisecond), larger than 0, default is Date.now()Integer
optionsOptional. Default is { confirmed: true }. If options.confirmed is true, the result is queried from solidity node.{ confirmed: boolean }

Return

Object

Example

> const { amount } = await tronWeb.trx.getCanWithdrawUnfreezeAmount('ownerAddress', Date.now());
{
    "amount": 9000000
}